const {override, fixBabelImports, addLessLoader, addDecoratorsLegacy, addWebpackAlias} = require('customize-cra');
const path = require('path');

module.exports = override(
    fixBabelImports('import', {
      libraryName: 'antd',
      libraryDirectory: 'es',
      style: true,
    }),
    addLessLoader({
      javascriptEnabled: true,
      modifyVars: {'@primary-color': '#1DA57A'},
    }),
    addDecoratorsLegacy(),
    addWebpackAlias({
      '@': path.resolve(__dirname, 'src'),
    }),
);
